<?php echo stylesheet_tag('/FoxsisLibPlugin/css/midia_plugin.css'); ?>
<?php echo stylesheet_tag('/FoxsisLibPlugin/css/colorbox.css'); ?>
<?php echo javascript_include_tag('/FoxsisLibPlugin/js/jquery.colorbox-min.js'); ?>

<div id="image-produto">
<?php echo image_tag("/uploads/".$data[0]['arquivo'], array("width"=>$info['width'])); ?>
	<div class="image-list-data">
		<ul>
			<?php foreach($data as $m): ?>
			<li>
				<?php
					echo link_to(
						image_tag(
                        	"/uploads/thumb/".$m["arquivo"],
							array(
                            	"rel" 	=>$m["id_arquivo"],
                            	'width' => $info['width']/4
							)
						),
						image_path("/uploads/".$m["arquivo"]),
							array(
                            	'id'        => 'preview',
                            	'title'		=> $m['nome'],
                                'rel'		=> 'midia_gallery'
                            )
                        );
				?>
			</li>
			<?php endforeach; ?>
		</ul>
	</div>
</div>


<script type="text/javascript">
$("a[rel='midia_gallery']").colorbox(
{
	onOpen:function(){ },
	onLoad:function(){ },
	onComplete:function(){ },
	onCleanup:function(){ },
	onClosed:function(){ }
});
</script>
